#define _CRT_SECURE_NO_WARNINGS 
#include <stdio.h>
#include<stdbool.h>
int xiaoqingwa1(int n)
{
	int a = 1;
	int b = 2;
	if (n == 1 || n == 2)
	{
		return n;
	}
	else
	{
		int c = 0;
		for (int i = 3; i <= n; i++)
		{
			 c = a + b;
			 a = b;
			 b = c;
		}
		return c;
	}
}
int xiaoqingwa2(int n)
{
	if (n == 1 || n == 2)
	{
		return n;
	}
	else
	{
		return xiaoqingwa2(n - 1) + xiaoqingwa2(n - 2);
	}
}
int haoshu(int n)
{
	int count = 1;
	int tem = n;
	while (n)
	{
		if ((n % 10) % 2 == 0&& count%2!=0)
		{
			return -1;
		}
		if ((n % 10) % 2 != 0 && count % 2 == 0)
		{
			return -1;
		}
		n /= 10;
		count++;
	}
	return tem;
}
int main()
{
	printf("%d\n", xiaoqingwa1(7));
	printf("%d\n", xiaoqingwa2(7));
	int n = 0;
	scanf("%d", &n);
	int count = 0;
	for (int i = 1; i <= n; i++)
	{
		if (haoshu(i)>=1)
		{
			printf("%d ", haoshu(i));
			count++;
		}
	}
	printf("%d\n", count);
	return 0;
}